package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `json:"username"`
	Password string `json:"password"`
}
type Shop struct {
	gorm.Model
	Img      string  `json:"img"`
	Name     string  `json:"name"`
	Number   int     `json:"number"`
	Money    float64 `json:"money"`
	UserId   int     `json:"user_id"`
	User     User    `json:"user"`
	BuyCount int     `json:"buy_count"`
}
type Buy struct {
	gorm.Model
	UserId int  `json:"user_id"`
	ShopId int  `json:"shop_id"`
	User   User `json:"user"`
	Shop   Shop `json:"shop"`
}
